home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / msgq160s.arc / SCREEN.H < prev    next >
Text File  |  1991-10-26  |  2KB  |  72 lines

  1. /*
  2.  * SCREEN.H - Display functions
  3.  *
  4.  * Msged/Q message editor for QuickBBS  Copyright 1990 by P.J. Muller
  5.  *
  6.  */
  7.  
  8. #define DIRECT          0
  9. #define BIOS            1
  10. #define FOSSIL          2
  11. #define NOSNOW        3
  12.  
  13. #ifdef WHITE
  14. #undef WHITE
  15. #endif
  16.  
  17. #ifdef BLACK
  18. #undef BLACK
  19. #endif
  20.  
  21. #define BLACK 0
  22. #define WHITE 7
  23.  
  24. void clreol(void);
  25. void gotoxy(int x,int y);
  26. int  wherex(void);
  27. int  wherey(void);
  28. void video_end(void);
  29. void video_init(void);
  30. void video_update(void);
  31. int  getkey(void);
  32. int keypressed(void);
  33. void cls(void);
  34. void bputc(unsigned char c);
  35. void bputs(char *s);
  36. void clrwnd(int x1,int y1,int x2,int y2);
  37. void scrollup(int x1,int y1,int x2,int y2,int lines);
  38. void scrolldown(int x1,int y1,int x2,int y2,int lines);
  39. int  getnum(int lo, int hi, int value);
  40. int  bgets(char *s,int c);
  41. void set_color(unsigned char attr);
  42. unsigned get_color(void);
  43. int  bprintf(char *s, ...);
  44. void strins(char *l, char c, int x);
  45. void strdel(char *l, int x);
  46.  
  47. #define TAB    0x0009        /* <Tab>    */
  48. #define PGUP    0x4900        /* <PgUp>     */
  49. #define PGDN    0x5100        /* <PgDn>    */
  50. #define UP      0x4800        /* <up>        */
  51. #define DOWN    0x5000        /* <down>    */
  52. #define LEFT    0x4b00        /* <left>    */
  53. #define RIGHT   0x4d00        /* <right>    */
  54. #define WORDRT     0x7400        /* <ctrl><right>*/
  55. #define WORDLT     0x7300        /* <ctrl><left>    */
  56. #define DELCHR  0x5300        /* <Del>    */
  57. #define DELLN    0x2000        /* <Alt><D>    */
  58. #define GOEOL    0x4f00        /* <End>    */
  59. #define GOBOL    0x4700        /* <Home>    */
  60. #define BKSPC   0x0008        /* <BkSpc>    */
  61. #define RUBOUT  0x007f
  62. #define SAVE    0x1f00        /* <Alt><S>    */
  63. #define ABORT    0x001b        /* <Esc>    */
  64. #define INSERT  0x5200        /* <Ins>    */
  65. #define ENTER   0x000d        /* <enter>    */
  66. #define WRITE    0x1100        /* <Alt><W>    */
  67. #define IMPORT    0x1700        /* <Alt><I>    */
  68. #define ANCHOR    0x1e00        /* <Alt><A>    */
  69. #define CUT    0x2e00        /* <Alt><C>    */
  70. #define PASTE    0x1900        /* <Alt><P>    */
  71. #define FORMAT  0x2100          /* <Alt><F>     */
  72.